<template>
    <view class="w-full h-full p-[20rpx] bg-white">
        <view class=" w-full flex justify-center items-center h-[60rpx] text-5xl text-center ">
            <text>
                注册信息
            </text>
        </view>
        <view class="pr-10">
            <uni-forms :modelValue="formData" :border="true">
                <uni-forms-item label="手机号" required>
                    <uni-easyinput :inputBorder="false" v-model="formData.mobile" placeholder="请输入姓名" />
                </uni-forms-item>
                <uni-forms-item label="联系人" required>
                    <uni-easyinput :inputBorder="false" v-model="formData.nickname" placeholder="请输入联系人" />
                </uni-forms-item>
            </uni-forms>
        </view>
    </view>
    <view
        class="fixed bottom-[80rpx] w-full h-[100rpx] rounded-full flex justify-center items-center bg-primary text-btn-text"
        @click="handleSubmit">

        <text>提交</text>
    </view>
</template>
<script lang="ts" setup>
import { registorAdminApi } from "@/api/admin"
const formData = reactive({
    mobile: "",
    nickname: ""
})

const handleSubmit = async () => {
    uni.showLoading({
        title: "加载中"
    })
    await registorAdminApi(formData)
    uni.hideLoading()
}
</script>
<style lang="scss" scoped></style>